﻿package mvc.controller {
	import mvc.model.ToolProxy;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	import org.puremvc.as3.multicore.patterns.observer.Notification;
    
	public class ChangeToolCommand extends SimpleCommand {
		
		override public function execute(note:INotification):void {
			ToolProxy(facade.retrieveProxy(ToolProxy.NAME)).tool = String(note.getBody());
		}
	}
}